-
Notifications
You must be signed in to change notification settings - Fork 353
Rework wifi error #4467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework wifi error #4467
Conversation
JurajSadel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nits
esp-radio/src/wifi/mod.rs
Outdated
| ), | ||
| WifiError::OutOfMemory => write!(f, "Out of memory."), | ||
| WifiError::NotStarted => write!(f, "Wi-Fi driver was not started."), | ||
| WifiError::NotStopped => write!(f, " Wi-Fi driver was not stopped."), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| WifiError::NotStopped => write!(f, " Wi-Fi driver was not stopped."), | |
| WifiError::NotStopped => write!(f, "Wi-Fi driver was not stopped."), |
esp-radio/src/wifi/mod.rs
Outdated
| WifiError::WakeFailed => { | ||
| write!(f, "Wi-Fi is in sleep state (RF closed) and wakeup failed.") | ||
| } | ||
| WifiError::WouldBlock => write!(f, " The caller would block."), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| WifiError::WouldBlock => write!(f, " The caller would block."), | |
| WifiError::WouldBlock => write!(f, "The caller would block."), |
esp-radio/src/wifi/mod.rs
Outdated
| /// Wi-Fi is in sleep state (RF closed) and wakeup failed | ||
| WakeFailed, | ||
|
|
||
| /// The caller would block |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not the caller would block, but the call/operation itself, isn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I honestly just copied the description from ESP-IDF but yes - this sounds a bit off 👍
Thank you for your contribution!
We appreciate the time and effort you've put into this pull request.
To help us review it efficiently, please ensure you've gone through the following checklist:
Submission Checklist 📝
cargo xtask fmt-packagescommand to ensure that all changed code is formatted correctly.CHANGELOG.mdin the proper section.Extra:
Pull Request Details 📖
Description
Closes #4453
Closes #4454
Not sure about the migration-guide - I wouldn't expect anyone to really handle specific errors (especially given the errors were designed in an unfortunate way)
Testing
CI